package com.example.popmp3.dao;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by Administrator on 2016/3/7.
 */
public class DBOpenHelper extends SQLiteOpenHelper{
    private static final int VERSION=1;
    private static final String DBNAME="account.db";
    public DBOpenHelper(Context context){
        super(context,DBNAME,null,VERSION);
    }
    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("create table tb_lovelist(_id integer primary key,name varchar(200))");
        db.execSQL("create table tb_musiclist(_id integer primary key,name varchar(200)," +
                "path varchar(200))");
        db.execSQL("create table tb_singlelist(_id integer primary key,musicid integer,loveid integer)");
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
